package com.sifang.sfuserservice.response;

/**
 *
 *
 */
public enum ResponseEnum {

	/**
	 * ok
	 */
	OK("000000", "ok"),

	/**
	 * 用户注册发生异常
	 */
	USER_REGISTER_EXCEPTION("200001", "用户注册发生异常"),
	SHOW_FAIL("100001", "系统异常");
    private final String code;

	private final String msg;

	public String value() {
		return code;
	}

	public String getMsg() {
		return msg;
	}

	ResponseEnum(String code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	@Override
	public String toString() {
		return "ResponseEnum{" + "code='" + code + '\'' + ", msg='" + msg + '\'' + "} " + super.toString();
	}

}
